home *** CD-ROM | disk | FTP | other *** search
/ Directorty Opus 5 - Magellan 2 / Opus 5 - Magellan 2.iso / Extras / hotlist_source / source / makefile < prev    next >
Makefile  |  1996-10-18  |  2KB  |  63 lines

  1. # Makefile for hotlist.module by Leo Davidson
  2.  
  3. # **!!NOTE!!** hotlist.module uses a custom version of modinit.c
  4.  
  5. # Originally based on the makefile for example.module from the OpusSDK.
  6.  
  7. MODULEOBJS = hotlist.module.o hotlist.module_strings.o ResourceNodes.o
  8. MODULEVER  = 1
  9. MODULEREV  = 2
  10.  
  11. # Compiler options -- The OPTIMIZE line should be used for release versions.
  12. #CCOPTS = noversion
  13. CCOPTS = noversion OPTIMIZE
  14. #CCOPTS = noversion DEBUG=LINE
  15.  
  16. # Linker options
  17. SLINKOPTS = noicons stripdebug smallcode smalldata
  18. #SLINKOPTS = noicons smallcode smalldata
  19.  
  20. #########################################################################
  21.  
  22. hotlist.module: $(MODULEOBJS) hotlist.module.h hotlist_modinit.o
  23.     slink with <<
  24. libprefix _L_
  25. libfd modules.fd
  26. from lib:libent.o lib:libinit.o hotlist_modinit.o $(MODULEOBJS)
  27. to $@
  28. lib lib:sc.lib lib:amiga.lib lib:dopuslib.lib
  29. libversion $(MODULEVER)
  30. librevision $(MODULEREV)
  31. $(SLINKOPTS)
  32. <
  33.  
  34. #########################################################################
  35.  
  36. hotlist.module.o: hotlist.module.c hotlist.module_strings.o
  37. hotlist.module.o: ResourceNodes.o hotlist.module.h
  38.  
  39. #########################################################################
  40.  
  41. hotlist.module_strings.o: hotlist.module.strings
  42.     setdate hotlist.module_strings.c
  43.     sc $(CCOPTS) hotlist.module_strings.c
  44.  
  45. #########################################################################
  46.  
  47. ResourceNodes.o: ResourceNodes.c ResourceNodes.h hotlist.module.h
  48. ResourceNodes.o: hotlist.module.strings
  49.  
  50. #########################################################################
  51.  
  52. .c.o:
  53.     sc $(CCOPTS) $*.c
  54. .asm.o:
  55.     sc:c/asm -iASMINC: $*.asm
  56. .cd.strings:
  57.     catcomp descriptor=$*.cd cfile=$*.strings
  58.  
  59. #########################################################################
  60.  
  61. clean:
  62.     -@delete \#?.(o|strings)
  63.